<?php

/**
 * GcProfessores form.
 *
 * @package    GC
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class GcProfessoresForm extends BaseGcProfessoresForm {

    public function configure() {

        unset($this['created_at'], $this['updated_at']);

        $this->widgetSchema['gc_disciplinas_professores_list'] = new sfWidgetFormDoctrineChoice(array(
                    'label' => 'Disciplinas',
                    'model' => 'GcDisciplina',
                    'order_by' => array('nome', 'asc'),
                    'expanded' => true,
                    'multiple' => true,
                ));

        $this->validatorSchema['gc_disciplinas_professores_list'] = new sfValidatorDoctrineChoice(array('model' => 'GcDisciplina', 'column' => 'id', 'multiple' => true));
    }

}
